package com.qzxy.premiumhotelsystem.domain.vo;

import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * ClassName: VipOrderVO
 * Package: com.qzxy.premiumhotelsystem.domain.vo
 * Description:
 *
 * @Author Qwh
 * @Create 2024/9/16 20:05
 * @Version 1.0
 */

@Data
public class OrderWithRoomVO implements Serializable {

    private String orderId;

    private Integer guestId;

    private String telephone;

    private String nickname;

    @JsonProperty("rooms")
    private RoomsVO roomsVO;

    private BigDecimal price;

    private Integer vipTypeId;

    private String vipType;

    private BigDecimal actuallyPrice;

    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkInTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkOutTime;

    private Integer durationDay;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @Version
    @JsonIgnore
    private Integer version;

    private static final long serialVersionUID = 1L;
}
